package com.sharer.last.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sharer.last.mapper.CityVisitorMapper;
import com.sharer.last.model.po.CityVisitorPO;
import com.sharer.last.service.CityVisitorService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * 城市访客数量统计业务层实现
 *
 * @ClassName CityVisitorServiceImpl
 * @Author wangjin
 * @Date 2023/5/5 20:44
 * @Description
 * @Version 1.0
 */
@Service
public class CityVisitorServiceImpl extends ServiceImpl<CityVisitorMapper, CityVisitorPO> implements CityVisitorService {
	@Resource
	CityVisitorMapper cityVisitorMapper;

	@Transactional(rollbackFor = Exception.class)
	@Override
	public void saveCityVisitor(CityVisitorPO cityVisitor) {
		cityVisitorMapper.saveCityVisitor(cityVisitor);
	}
}
